#region Using Directives

#endregion

#region

using System.Configuration;

#endregion

namespace BuildMotion.MotionTracker.Provider
{
    public class MotionTrackerServiceSection : ConfigurationSection
    {
        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers
        {
            get { return (ProviderSettingsCollection) base["providers"]; }
        }

        /// <summary>
        /// The DefaultValue of the ConfigurationProperty needs to be the base provider type.
        /// </summary>
        [StringValidator(MinLength = 1)]
        [ConfigurationProperty("defaultProvider", DefaultValue = "MotionTrackerProvider")]
        public string DefaultProvider
        {
            get { return (string) base["defaultProvider"]; }
            set { base["defaultProvider"] = value; }
        }
    }
}